package com.hyperfix.models.washer.vos;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author JiangChunYu
 * 2024/4/24
 */
@Data
public class ParamConfigVO {
    private Integer pipelineId;
    @NotEmpty(message = "参数类型不能为空")
    @Pattern(message = "参数类型错误", regexp = "^(temperature|pressure|oilPressure|casingPressure|diffPressure|flow|totalFlow)$")
    private String type;
    private Double lowerLimit;
    private Double upperLimit;
}
